package org.boot.myledger.service.impl;

import org.boot.myledger.entity.User;
import org.boot.myledger.mapper.UserMapper;
import org.boot.myledger.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: liupy
 * @Date: 2024/3/28
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 登录
     * @param phone 手机号（账号）
     * @param password 密码
     * @return 用户信息
     */
    @Override
    public User login(String phone, String password) {
        return userMapper.login(phone,password);
    }
}
